package _03Object类;

public class DemoObject {


    public static void main(String[] args) {
        //equal
        String s1 = "abc";
        String s2 = s1;
        String s3 = new String("abc");

        System.out.println(s1.equals(s2));
        System.out.println(s1.equals(s3));
        System.out.println(s2.equals(s3));

        System.out.println(s1==s2);
        System.out.println(s1==s3);
        System.out.println(s2==s3);


    }
}
